package com.otdemo.entity;

import java.sql.Timestamp;
import java.util.List;

public class Quiz {

	private Integer qId;
	private String qName;
	private Timestamp startTime;	//考试开始时间
	private Timestamp endTime;		//考试结束时间
	private boolean status;			//考试状态（进行中，未开始）
	private int pId;				//关联的试卷
	private List<Stu> stus;			//参加考试的学生
	
	public Timestamp getStartTime() {
		return startTime;
	}
	public void setStartTime(Timestamp startTime) {
		this.startTime = startTime;
	}
	public Timestamp getEndTime() {
		return endTime;
	}
	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}
	public boolean isStatus() {
		return status;
	}
	public void setStatus(boolean status) {
		this.status = status;
	}
	public int getpId() {
		return pId;
	}
	public void setpId(int pId) {
		this.pId = pId;
	}
	public List<Stu> getStus() {
		return stus;
	}
	public void setStus(List<Stu> stus) {
		this.stus = stus;
	}
	
	public Integer getqId() {
		return qId;
	}
	public void setqId(Integer qId) {
		this.qId = qId;
	}
	public String getqName() {
		return qName;
	}
	public void setqName(String qName) {
		this.qName = qName;
	}
	public Quiz(Integer qId, String qName) {
		super();
		this.qId = qId;
		this.qName = qName;
	}
	
	public Quiz(Integer qId, String qName, Timestamp startTime, Timestamp endTime, boolean status, int pId,
			List<Stu> stus) {
		super();
		this.qId = qId;
		this.qName = qName;
		this.startTime = startTime;
		this.endTime = endTime;
		this.status = status;
		this.pId = pId;
		this.stus = stus;
	}
	public Quiz() {
		super();
	}
	@Override
	public String toString() {
		return "Quiz [qId=" + qId + ", qName=" + qName + ", startTime=" + startTime + ", endTime=" + endTime
				+ ", status=" + status + ", pId=" + pId + ", stus=" + stus + "]";
	}

	
	
}
